var user_page = document.getElementById("user_page");

user_page.style.visibility = "hidden";

document.getElementById("log").onclick = function() {
	user_page.style.visibility = "visible";
	user_page.style.animationName = "fadeInLeft";
}

document.getElementById("userpage_close").onclick = function(){
	user_page.style.animationName = "fadeOutLeft";
	
}


var search_page = document.getElementById("search_page_id");

search_page.style.visibility = "hidden";

document.getElementById("search_but").onclick = function() {
	search_page.style.visibility = "visible";
	search_page.style.animationName = "fadeInRight";
}

document.getElementById("searchpage_close").onclick = function(){
	search_page.style.animationName = "fadeOutRight";
	
}